package com.ease.i18n.test;

import java.util.Locale;

import com.ease.context.i18n.ResourceMessageUtil;
import com.ease.context.i18n.ResourceRegister;

public class I18N {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		ResourceRegister.registerResource(ResourceRegister.I18N, "resource/mainApp.properties");
		ResourceRegister.registerResource(ResourceRegister.I18N, "resource/mainApp_en.properties");
		ResourceRegister.registerResource(ResourceRegister.I18N, "resource/mainApp_zh_CN.properties");

		String title = ResourceMessageUtil.getExceptionResourceMessage("window_Title");
		System.out.println("title:[" + title + "]");

		String title2 = ResourceMessageUtil.getExceptionResourceMessage("window_Title", Locale.ENGLISH);
		System.out.println("title2:[" + title2 + "]");

		String title3 = ResourceMessageUtil.getI18nResourceMessage("china");
		System.out.println("title:[" + title3 + "]");

		String title4 = ResourceMessageUtil.getI18nResourceMessage("china", Locale.ENGLISH);
		System.out.println("title2:[" + title4 + "]");

	}

}
